package com.zcn.io.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcn.io.web.api.dto.DictDto;
import com.zcn.io.web.api.entity.SysRole;
import com.zcn.io.web.api.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc:
 * @author: 202438 邱建伟
 * @date: 2024/9/17 20:33
 * @Copyright (c) 2024, 江苏金恒信息科技股份有限公司
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<SysRole> getRolesByUserId(@Param("userId") String userId);

    List<DictDto> dict();
}
